<?php
class M_userpan extends Module {
  public function main() {
    if ( Site::$user->online() ) {
      $tmp = new Template( 'userpan' );
      $tmp->assign( 'username', Site::$user->name() );
    } else {
      $tmp = new Template( 'login_form' );
    }
    return $tmp;
  }
}

?>